package com.alifi.crm.biz.lottery;

import java.util.List;

import com.alifi.crm.dal.object.EmployeeDO;
import com.alifi.crm.dal.object.WinRecordDO;

/**
 * 抽奖活动业务层
 * 
 * @author wb_liangzhou.yan
 * @version $Id: LotteryManager.java, v 0.1 2013-4-24 下午02:31:43 wb_liangzhou.yan Exp $
 */
public interface LotteryManager {

    /**
     * 获取员工抽奖信息
     * 
     * @param employeeNum
     * @return
     */
    public EmployeeDO getEmployeeInfo(String employeeNum);
    
    /**
     * 获取中奖信息
     * 
     * @return
     */
    public List<WinRecordDO> getWinRecords();
    
    /**
     * 抽奖接口
     * 
     * @return
     */
    public LotteryResult lottery(String employeeNum, String nickName, String realName);
    
    /**
     * 转发后点击次数增加
     * 
     * @param employeeNum 增加机会的员工
     * @param recipient 被推荐人
     */
    public void addTransmitLog(String employeeNum, String recipient);

    /**
     * 保存访问日志
     * 
     * @param employeeNum
     * @param realName
     * @param nickName
     */
    public void insertLog(String employeeNum, String realName, String nickName);
    
    /**
     * 获取某个员工的中奖纪录
     * 
     * @param employeeNum
     * @return
     */
    List<WinRecordDO> selectByEmployeeNum(String employeeNum);
    
}
